package com.zhou.dao;

import com.github.pagehelper.Page;
import com.zhou.pojo.User;

import java.util.Map;

public interface UserMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(User record);

    int insertSelective(User record);

    User selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(User record);

    int updateByPrimaryKey(User record);

    User findByUsername(String username);

    Page<User> findByPage(String queryString);

    long findExist(String username);

    void setUserAndRole(Map<String, Integer> map);

    void deleteAssociation(Integer id);

    void changePassword(User user);

    String findPasswordByUser(User user);
}